package com.library.service.impl;


import com.library.common.core.text.Convert;
import com.library.domain.BoSignIntegral;
import com.library.mapper.BoSignIntegralMapper;
import com.library.service.IBoSignIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 签到积分 服务层实现
 *
 * @author wanghongjie
 * @date 2020-01-18
 */
@Service
public class BoSignIntegralServiceImpl implements IBoSignIntegralService {
    @Autowired
    private BoSignIntegralMapper boSignIntegralMapper;

    /**
     * 查询签到积分信息
     *
     * @param id 签到积分ID
     * @return 签到积分信息
     */
    @Override
    public BoSignIntegral selectBoSignIntegralById(Long id) {
        return boSignIntegralMapper.selectBoSignIntegralById(id);
    }

    /**
     * 查询签到积分列表
     *
     * @param boSignIntegral 签到积分信息
     * @return 签到积分集合
     */
    @Override
    public List<BoSignIntegral> selectBoSignIntegralList(BoSignIntegral boSignIntegral) {
        return boSignIntegralMapper.selectBoSignIntegralList(boSignIntegral);
    }

    @Override
    public List<BoSignIntegral> selectBoSignIntegralCheckInOutList(BoSignIntegral boSignIntegral) {
        return boSignIntegralMapper.selectBoSignIntegralCheckInOutList(boSignIntegral);
    }


    /**
     * 新增签到积分
     *
     * @param boSignIntegral 签到积分信息
     * @return 结果
     */
    @Override
    public int insertBoSignIntegral(BoSignIntegral boSignIntegral) {
        return boSignIntegralMapper.insertBoSignIntegral(boSignIntegral);
    }

    /**
     * 修改签到积分
     *
     * @param boSignIntegral 签到积分信息
     * @return 结果
     */
    @Override
    public int updateBoSignIntegral(BoSignIntegral boSignIntegral) {
        return boSignIntegralMapper.updateBoSignIntegral(boSignIntegral);
    }

    /**
     * 删除签到积分对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBoSignIntegralByIds(Long[] ids) {
        return boSignIntegralMapper.deleteBoSignIntegralByIds(ids);
    }

}
